<template>
  <div style="margin: 20px;">
    <el-breadcrumb separator="/" style="line-height:35px">
      <el-breadcrumb-item><span style="color: #7A7A7A;">服务管理</span></el-breadcrumb-item>
      <el-breadcrumb-item><span style="color: #7A7A7A;">护理管理</span></el-breadcrumb-item>
      <el-breadcrumb-item><span style="color: #7A7A7A;">护理报表</span></el-breadcrumb-item>
    </el-breadcrumb>
  </div>
  <el-card style="margin:20px;border: 0">
    <el-form label-width="80px">
      <el-row :gutter="20">
        <el-col :span="6">
          <el-form-item label="老人名称">
            <el-input v-model="service_search_data.proName" placeholder="请输入项目名称"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="责任护士">
            <el-select placeholder="请选择" v-model="service_search_data.nurse">
              <el-option label="护士1" value="0"></el-option>
              <el-option label="护士2" value="1"></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="护工">
            <el-select placeholder="请选择" v-model="service_search_data.caregivers">
              <el-option label="护工1" value="0"></el-option>
              <el-option label="护工2" value="1"></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="区域">
            <el-select placeholder="默认加载本账号的权限病区" v-model="service_search_data.region">
              <el-option label="康复一区" value="0"></el-option>
              <el-option label="康复二区" value="1"></el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="20">
        <el-col :span="6">
        <el-form-item label="床位号">
          <el-select placeholder="请选择" v-model="service_search_data.bedNumber">
            <el-option label="全部床位" value="0"></el-option>
            <el-option label="床位1" value="1"></el-option>
          </el-select>
        </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="护理级别">
            <el-select placeholder="请选择" v-model="service_search_data.level">
              <el-option label="全部" value="0"></el-option>
              <el-option label="三级护理" value="1"></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item>
            <el-button @click="resetSearch">重置</el-button>
            <el-button type="primary" @click=""><el-icon><Search /></el-icon>
              查询</el-button>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
  </el-card>
  <el-card style="margin:20px;border: 0">
    <el-table :data="tableData" style="width: 100%;" max-height="250">
      <el-table-column fixed prop="bedId" label="床位号" width="150" />
      <el-table-column prop="name" label="老人姓名" width="150" />
      <el-table-column prop="gender" label="性别" width="120" />
      <el-table-column prop="age" label="年龄" width="120" />
      <el-table-column prop="area" label="住院区域" width="150" />
      <el-table-column prop="room" label="房间" width="120" />

      <el-table-column fixed="操作" label="Operations" width="120">
        <template #default="scope">
          <el-button
              link
              type="primary"
              size="small"
              @click.prevent="viewTheReport(scope.$index)"
          >
            查看报表
          </el-button>
        </template>
      </el-table-column>
    </el-table>
  </el-card>

</template>
<script setup>
import {ref} from "vue";

const service_search_data =ref({nurseName:'',nurse:'',caregivers:'',region:'',room:'',bedNumber:'',level:''})
const resetSearch=()=>{

  service_search_data.value={nurseName:'',nurse:'',caregivers:'',region:'',room:'',bedNumber:'',level:''}
}

const tableData = ref([
  {
    bedId:12,
    name:'张姥姥',
    gender:'女',
    age:80,
    area:'康复一区',
    room:1001

  },
  {
    bedId: 12,
    name: '刘姥姥',
    gender: '女',
    age: 80,
    area: '康复一区',
    room: 1003

  },
  {
    bedId:12,
    name:'王姥姥',
    gender:'女',
    age:80,
    area:'康复一区',
    room:1002

  }
])
</script>
<style scoped>

</style>
